php reindex array after unset

58

php reindex array after unset -

unset($foo[0]); // remove item at index 0
$foo2 = array_values($foo); // 'reindex' array

Comments

Submit
0 Comments